import request from '@/utils/request'

// 查询行程码查询列表
export function listCard(query) {
  return request({
    url: '/roadcard/card/list',
    method: 'get',
    params: query
  })
}

// 查询行程码查询详细
export function getCard(id) {
  return request({
    url: '/roadcard/card/' + id,
    method: 'get'
  })
}

// 新增行程码查询
export function addCard(data) {
  return request({
    url: '/roadcard/card',
    method: 'post',
    data: data
  })
}

// 修改行程码查询
export function updateCard(data) {
  return request({
    url: '/roadcard/card',
    method: 'put',
    data: data
  })
}

// 删除行程码查询
export function delCard(id) {
  return request({
    url: '/roadcard/card/' + id,
    method: 'delete'
  })
}
